package com.xnyzc.lhy.mis.controller.cmsapi.punishment;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.service.punishment.IOaDUserPenaltyTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 司机处罚定时任务
 * */

@RestController
@Api(value="司机处罚定时任务",tags={"司机处罚定时任务"})
@RequestMapping("/cmsapi/oaDUserPenaltyTask")
public class OaDUserPenaltyTaskController {
    @Autowired
    private IOaDUserPenaltyTaskService iOaDUserPenaltyTaskService;
    /**
     * 定时解封司机处罚内容  OaDUser
     * */
    @ApiOperation(value = "定时解封司机处罚内容", notes = "定时解封司机处罚内容")
    @GetMapping(value = "/unsealDriverPenaltyTask")
    public Rv unsealDriverPenaltyTask() {
        return iOaDUserPenaltyTaskService.unsealDriverPenaltyTask();
    }
    /**
     * 定时解冻司机处罚内容  OaDWallet
     * */
    @ApiOperation(value = "定时解冻司机处罚内容", notes = "定时解冻司机处罚内容")
    @GetMapping(value = "/unsealDriverThawTask")
    public Rv unsealDriverThawTask() {
        return iOaDUserPenaltyTaskService.unsealDriverThawTask();
    }

}
